<!--
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html 
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License. 
 * The Original Code is Openbravo ERP. 
 * The Initial Developer of the Original Code is Openbravo SL 
 * All portions are Copyright (C) 2001-2006 Openbravo SL 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.
 ************************************************************************
-->
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>Expenses invoice</TITLE>
<LINK rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Main/Main_Edition.css" id="paramCSS"/>
<script language="JavaScript" type="text/javascript" id="paramDirection">
var baseDirection = "../../../../../web/";
</script>
<script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
<SCRIPT language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></SCRIPT>
<script language="JavaScript" type="text/javascript" id="paramLanguage">
  LNG_POR_DEFECTO = "en_US";
</script>
<SCRIPT language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></SCRIPT>
<script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
<SCRIPT language="JavaScript" src="../../../../../web/js/callOut.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/String.js" type="text/javascript"></SCRIPT>
<SCRIPT language="JavaScript" src="../../../../../web/js/TypeAheadCombo.js" type="text/javascript"></SCRIPT>
<script language="JavaScript" type="text/javascript" id="keyMap"></script>
<SCRIPT language="javascript" type="text/javascript">
arrTeclas[arrTeclas.length] = new Teclas("ENTER", "openSearch(null, null, '../info/BusinessPartner_FS.html', null, true, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_D', document.frmMain.inpcBpartnerId_D.value, 'inpIDValue', document.frmMain.inpcBpartnerId.value, 'Command', 'KEY', 'WindowID', 'InvoiceVendorMultiline.html');", "inpcBpartnerId_D", "null");

function calloutSE_Invoice_BPartner(changedField) {
submitCommandFormParameter('DEFAULT', frmMain.inpLastFieldChanged, changedField, false, null, '../ad_callouts/SE_Invoice_BPartner.html', 'frameOculto', null, null, true);
return true;
}

function debugSearch(key, text, keyField) {
  if (keyField=="inpcBpartnerId") {
    calloutSE_Invoice_BPartner(keyField);
  }
return true;
}

function onloadFunctions() {
  new TypeAheadCombo("reportAD_Org_ID_S");
  new TypeAheadCombo("reportC_BPartner_Location_ID_S");
  new TypeAheadCombo("reportPaymentRule_S");
  new TypeAheadCombo("reportC_PaymentTerm_ID_S");
  activarTeclas();
}

function depurar() {
  return true;
}
</SCRIPT>
</HEAD>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="resizeArea();updateMenuIcon('buttonMenu');onloadFunctions();xx();focoPrimerControl();" onresize="resizeArea();" id="paramBody">
<form id="form" method="POST" action="InvoiceVendorMultiline.html" name="frmMain">
  <input type="hidden" name="Command">
  <input type="hidden" name="inpCommandType" value="" id="paramCommandType">
  <input type="hidden" name="inpTabId" value="" id="fieldTabId">
  <input type="hidden" name="inpLastFieldChanged" id="paramChanged" value="">
  <input type="hidden" name="inpwindowId" value="" id="fieldWindowId">
  <input type="hidden" name="inpkeyColumnId" value="" id="C_Invoice_ID">
  <input type="hidden" name="inpTableId" value="" id="fieldTableId">
  <input type="hidden" name="inpKeyName" value="inpC_Invoice_ID">
  <input type="hidden" name="inpKeyReferenceColumnName">
  <input type="hidden" name="inpTableReferenceId">
  <input type="hidden" name="inpKeyReferenceId">
  <input type="hidden" name="inpSecondKey">
  <INPUT type="hidden" name="inpcInvoiceId" value="" id="C_Invoice_ID"></INPUT> 
  <INPUT type="hidden" name="inpdocstatus" value="" id="fieldDocStatus"></INPUT> 
  <INPUT type="hidden" name="inpprocessing" value="" id="fieldProcessing"></INPUT> 

  <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
    <tr>
      <td valign="top" id="tdleftTabs"></td>
      <td valign="top">
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Left">
          <TR><TD class="Main_NavBar_bg_left" id="tdleftSeparator"></TD></TR>
          <TR><TD class="Main_ToolBar_bg_left" valign="top"></TD></TR>
          <TR><TD class="Main_Client_bg_left"></TD></TR>
          <TR><TD class="Main_Bottom_bg_left"></TD></TR>
        </TABLE>
      </td>
      <td valign="top">
        <div class="Main_ContentPane_NavBar" id="tdtopButtons"></div>
        <div class="Main_ContentPane_ToolBar" id="paramToolBar"></div>
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_TabPane" id="tdtopTabs">
          <TR id="paramParentTabContainer"></TR>
          <TR id="paramMainTabContainer"></TR>
          <TR id="paramChildTabContainer"></TR>
        </TABLE>
        <DIV class="Main_ContentPane_Client" style="overflow: auto; display: none;" id="client">
          <TABLE summary="" id="sectionDetail">
            <TR>
              <TD>
                <!-- MessageBox -->
                <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
                  <TBODY>
                    <tr class="MessageBox_TopMargin">
                      <td class="MessageBox_LeftMargin"></td>
                      <td></td>
                      <td class="MessageBox_RightMargin"></td>
                    </tr>
                    <tr>
                      <td class="MessageBox_LeftMargin"></td>
                      <td>

                        <table cellpadding="0" cellspacing="0" style="width: 100%;">
                          <TBODY>
                            <tr>
                              <td>
                                <div class="MessageBox_TopLeft"></div>
                                <div class="MessageBox_Left"></div>
                              </td>
                              <td class="MessageBox_bg">

                                <table class="MessageBox_Top">
                                  <TBODY>
                                    <tr>
                                      <td>
                                        <span>
                                          <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
                                            <TBODY>
                                              <tr>
                                                <td class="MessageBox_Icon_ContentCell">
                                                  <div class="MessageBox_Icon"></div>
                                                </td>
                                                <td style="vertical-align: top;" id="messageBoxIDContent">
                                                  <span>
                                                    <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
                                                      xxInfo: AccessTableWithNoView
                                                    </div>
                                                    <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
                                                      xxThe current information is empty.
                                                    </div>
                                                    <div class="MessageBox_TextSeparator"></div>
                                                  </span>
                                                </td>
                                              </tr>
                                            </TBODY>
                                          </table>
                                        </span>
                                      </td>
                                    </tr>
                                  </TBODY>
                                </table>

                              </td>
                              <td class="MessageBox_RightTrans">
                                <div class="MessageBox_TopRight"></div>
                                <div class="MessageBox_Right"></div>
                              </td>
                            </tr>
                            <tr>
                              <td rowspan="2" class="MessageBox_BottomLeft">
                              </td>
                              <td class="MessageBox_BottomTrans MessageBox_bg">
                              </td>
                              <td rowspan="2" class="MessageBox_BottomRight">
                              </td>
                            </tr>
                            <tr>
                              <td class="MessageBox_Bottom">
                              </td>
                            </tr>
                          </TBODY>
                        </table>

                      </td>
                      <td class="MessageBox_RightMargin"></td>
                    </tr>
                    <tr class="MessageBox_BottomMargin">
                      <td class="MessageBox_LeftMargin"></td>
                      <td></td>
                      <td class="MessageBox_RightMargin"></td>
                    </tr>
                  </TBODY>
                </table>
                <!-- MessageBox End -->
                <table width="100%" cellspacing="0" cellpadding="0" border ="0" class="Main_Client_TableEdition" id="sectionDetail">
                  <TR>
                    <TD class="TableEdition_OneCell_width"></TD>
                    <TD class="TableEdition_OneCell_width"></TD>
                    <TD class="TableEdition_OneCell_width"></TD>
                    <TD class="TableEdition_OneCell_width"></TD>
                    <TD class="TableEdition_OneCell_width"></TD>
                    <TD class="TableEdition_OneCell_width"></TD>
                  </TR>
                  <TR> 
                    <TD class="TitleCell"> 
                      <SPAN class="LabelText"> <A href="#" onclick="sendDirectLink(document.frmMain, 'AD_Org_ID', document.frmMain.inpcInvoiceId.value, '../utility/ReferencedLink.html', document.frmMain.inpadOrgId.value, '155', '_self', true);return false;" onmouseover="window.status='Organization';return true;" onmouseout="window.status='';return true;" class="LabelLink">Organization</A></SPAN>
                    </TD>
                    <TD class="Combo_ContentCell" colspan="2">
                      <DIV id="editDiscard"> <SELECT name="inpadOrgId" class="ComboKeyNoUpdatable Combo_TwoCells_width" readonly="true" onchange="logChanges(this);selectCombo(this, 'xx');return true;" id="reportAD_Org_ID_S"><DIV id="reportAD_Org_ID"></DIV>
                      </SELECT></DIV>
                      <DIV id="newDiscard"> <SELECT name="inpadOrgId" onchange="logChanges(this);return true;" class="ComboKey Combo_TwoCells_width" id="reportAD_Org_ID_S"><DIV id="reportAD_Org_ID"></DIV>
                      </SELECT></DIV>
                    </TD>
                    <TD class="TitleCell"><SPAN class="LabelText">Reference No.</SPAN></TD>
                    <TD class="TextBox_ContentCell"> <INPUT type="text" size="20" maxlength="20" name="inpporeference" id="inpporeference" value="xxV" onchange="logChanges(this);return true;"></INPUT>
                    </TD>
                  </TR>
                  <TR> 
                    <TD class="TitleCell">
                      <SPAN class="LabelText"> <A href="#" onclick="sendDirectLink(document.frmMain, 'C_BPartner_ID', document.frmMain.inpcInvoiceId.value, '../utility/ReferencedLink.html', document.frmMain.inpcBpartnerId.value, '291', '_self', true);return false;" onmouseover="window.status='Business Partner';return true;" onmouseout="window.status='';return true;" class="LabelLink">Business Partner</A></SPAN>
                    </TD>
                    <TD class="TextBox_btn_ContentCell" colspan="2">
                      <TABLE border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
                        <TR>
                          <TD class="TextBox_ContentCell">
                            <INPUT type="hidden" name="inpcBpartnerId" value="xxV" id="C_BPartner_ID"></INPUT> 
                            <INPUT class="dojoValidateValid TextBox_btn_TwoCells_width" type="text"  name="inpcBpartnerId_D" maxlength="20" value="xxV" id="C_BPartner_ID_D" onchange="logChanges(this);return true;"></INPUT>
                          </TD>
                          <TD class="FieldButton_ContentCell">
                            <INPUT type="hidden" name="inpcBpartnerId_LOC" id="C_BPartner_ID_LOC" value="" ></INPUT> 
                            <INPUT type="hidden" name="inpcBpartnerId_CON" id="C_BPartner_ID_CON" value="" ></INPUT> 
                            <a class="FieldButtonLink" href="#" onfocus="this.className='FieldButtonLink_hover'; window.status='Business Partner'; return true;" onblur="this.className='FieldButtonLink'; window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_hover'; return true;"  onclick="openSearch(null, null, '../info/BusinessPartner_FS.html', null, true, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_D', document.frmMain.inpcBpartnerId_D.value, 'inpIDValue', document.frmMain.inpcBpartnerID.value, 'WindowID', '183');return false;">
                            <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Business Partner';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
                              <TR>
                                <TD class="FieldButton_bg">
                                  <IMG alt="Business Partner" class="FieldButton_Icon FieldButton_Icon_BusinessPartner" title="Business Partner" src="../../../../../web/images/blank.gif" border="0"></IMG>
                                </TD>
                              </TR>
                            </TABLE>
                            </a>
                          </TD>
                        </TR>
                      </TABLE>
                    </TD>
                    <TD class="TitleCell"> <SPAN class="LabelText"><A href="#" onclick="sendDirectLink(document.frmMain, 'C_BPartner_Location_ID', document.frmMain.inpcInvoiceId.value, '../utility/ReferencedLink.html', document.frmMain.inpcBpartnerLocationId.value, '293', '_self', true);return false;" onmouseover="window.status='Address';return true;" onmouseout="window.status='';return true;" class="LabelLink">Address</A>:&nbsp;</SPAN>
                    </TD>
                    <TD class="Combo_ContentCell" colspan="2"><SELECT name="inpcBpartnerLocationId" onchange="logChanges(this);return true;" class="ComboKey Combo_TwoCells_width" id="reportC_BPartner_Location_ID_S"><DIV id="reportC_BPartner_Location_ID"></DIV>
                    </SELECT></TD>
                  </TR>
                  <TR> 
                    <TD class="TitleCell"><SPAN class="LabelText">Date</SPAN></TD>
                    <TD class="TextBox_btn_ContentCell">
                      <TABLE border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
                        <TR>
                          <TD class="TextBox_ContentCell">
                            <INPUT dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width required" required="true" type="text" name="inpdate" id="generaldate" size="10" maxlength="10" value="xxV" onkeyup="auto_complete_date(this.textbox, this.displayFormat);return true;"></INPUT><script>djConfig.searchIds.push("generaldate");</script>
                          </TD>
                          <TD class="FieldButton_bg">
                            <TABLE class="FieldButton" onclick="showCalendar('frmMain.inpdate', document.frmMain.inpdate.value, false);return false;" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
                              <TR>
                                <TD class="FieldButton_bg">
                                  <IMG alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></IMG>
                                </TD>
                              </TR>
                            </TABLE>
                          </TD>
                        </TR>
                      </TABLE>
                    </TD>
                    <TD class="TitleCell"> <SPAN class="LabelText">Payment rule</SPAN></TD>
                    <TD class="Combo_ContentCell"> <SELECT name="inppaymentrule" onchange="logChanges(this);return true;" class="ComboKey Combo_OneCell_width" id="reportPaymentRule_S"><DIV id="reportPaymentRule"></DIV>
                    </SELECT></TD>
                    <TD class="TitleCell"><SPAN class="LabelText"> <A href="#" onclick="sendDirectLink(document.frmMain, 'C_PaymentTerm_ID', document.frmMain.inpcInvoiceId.value, '../utility/ReferencedLink.html', document.frmMain.inpcPaymenttermId.value, '113', '_self', true);return false;" onmouseover="window.status='Payment term';return true;" onmouseout="window.status='';return true;" class="LabelLink">Payment term</A></SPAN></TD>
                    <TD class="Combo_ContentCell"><SELECT name="inpcPaymenttermId" onchange="logChanges(this);return true;" class="ComboKey Combo_OneCell_width" id="reportC_PaymentTerm_ID_S"><DIV id="reportC_PaymentTerm_ID"></DIV>
                    </SELECT></TD>
                  </TR>
                  <TR>
                    <TD colspan="6">
                      <TABLE class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
                        <TR class="FieldGroup_TopMargin"></TR>
                        <TR>
                          <TD class="FieldGroupTitle_Left"><IMG class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"></IMG></TD>
                          <TD class="FieldGroupTitle"><SPAN>Lines</SPAN></TD>
                          <TD class="FieldGroupTitle_Right"><IMG class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"></IMG></TD>
                          <TD class="FieldGroupContent"></TD>
                        </TR>
                        <TR class="FieldGroup_BottomMargin"></TR>
                      </TABLE>
                    </TD>
                  </TR>
                  <TR> 
                    <TD colspan="6"><BR></BR>
                      <TABLE width="707" border="1" cellpadding="0" cellspacing="0"  summary="" style="margin-left:-1.4em; ">
                        <TR> 
                          <th width="3%" class="datagridLineNoHeaderCell">&nbsp;</th>
                          <th width="3%" class="datagridCell" valign="middle">No.</th>
                          <th width="45%" valign="middle" class="TitleCell">Product</th>
                          <th width="16%" class="TitleCell" valign="middle">Price</th>
                          <th width="13%" class="TitleCell" valign="middle">Quantity</th>
                          <th width="20%" class="TitleCell" valign="middle">Tax</th>
                        </TR>
                      </TABLE>
                      <IFRAME name="frameLines" width="725" height="250" frameborder="1" scrolling="auto" src="InvoiceVendorMultiline_Lines.html?inpcInvoiceId=xx" id="fieldInvoiceId"></IFRAME></TD>
                  </TR>
                  <TR>
                    <TD></TD>
                    <TD class=Button_CenterAlign_ContentCell>
                      <INPUT type="hidden" name="inpdocaction" id="DocAction" value="xxV"></INPUT>
                      <a class="ButtonLink" href="#" onfocus="this.className='ButtonLink_hover'; window.status='Process Order'; return true;" onblur="this.className='ButtonLink'; window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_hover'; return true;" onclick="openServletNewWindow('BUTTONDocAction111', false, '../xx', 'BUTTON', null, true);return false;" id="fieldButtonAction">
                        <table class="Button" onmousedown="this.className='Button_active'; return true;" onmouseup="this.className='Button'; return true;" onmouseover="this.className='Button_hover'; window.status='Process Order'; return true;" onmouseout="this.className='Button'; window.status=''; return true;">
                          <tr>
                              <td class="Button_left"><img class="Button_Icon Button_Icon_process" alt="Process Order" title="Process Order" src="../../../../../web/images/blank.gif" border="0"></td>
                              <td class="Button_text" id="DocAction_BTN">xxComplete</td>
                              <td class="Button_right"></td>
                            </tr>
                        </table>
                      </a>
                    </TD>
                    <TD class="TitleCell"><SPAN class="LabelText">Total Lines</SPAN></TD>
                    <TD class="Label_ReadOnly_Text" id="fieldImporteTotal">xx0.00</TD>
                    <TD class="TitleCell"><SPAN class="LabelText">Grand Total</SPAN></TD>
                    <TD class="Label_ReadOnly_Text" id="fieldTotal">xx0.00</TD>
                  </TR>
                </TABLE>
              </TD>
            </TR>
          </TABLE>
        </div>
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Menu_ContentPane_Bottom" id="tdbottomSeparator">
          <TR>
            <TD class="Main_Bottom_bg"><IMG src="../../../../../web/images/blank.gif" border="0"></TD>
          </TR>
      </TABLE></td>
      <td valign="top">
        <TABLE width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Right" id="tdrightSeparator">
          <TR><TD class="Main_NavBar_bg_right"></TD></TR>
          <TR><TD class="Main_ToolBar_bg_right" valign="top"></TD></TR>
          <TR><TD class="Main_Client_bg_right"></TD></TR>
          <TR><TD class="Main_Bottom_bg_right"></TD></TR>
        </TABLE>
      </td>
    </tr>
  </table>
</FORM>
</BODY>
</HTML>
